/**
*@Author: QWP
*@Description: 企业风险相关接口
*@Date 2024-08-06 19:04
*/
import request from '@/http'

// 非煤企业信息查询接口
export const getCompany = async (data: object) => {
  return await request.post({
    url: '/api/bizz/tCompany/getCompany',
    data: data,
    // headersType: 'application/x-www-form-urlencoded'
  })
}

// 实时获取企业综合预警基本信息
export const getWarnMain = async (data: object) => {
  return await request.post({
    url: '/api/bizz/tCompany/getWarnMain',
    data: data
  })
}

// 更新企业是否是关注企业
export const update_is_attention = async (data: object) => {
  return await request.post({
    url: '/api/bizz/tCompany/update_is_attention',
    data: data,
  })
}

// 删除
export const del = async (data: Array<any>) => {
  return await request.post({
    url: '/api/bizz/admTContacts/delete',
    data,
    headersType: 'application/x-www-form-urlencoded'
  })
}

// 单体查询
export const query = async (id: String) => {
  return await request.get({
    url: '/api/bizz/tCompany/details/' + id,
  })
}

// 导出
export const download = async (data: object) => {
  return await request.download1({
    url: '/api/bizz/admTContacts/export',
    data
  })
}
